<div class="caption">
  <% @reships.each do |reship| %>
    <div id="reship_<%= reship.id %>">
      <div class="title">
        <b>【转】</b>
        <%= link_to truncate("#{reship.title}", :length => 10),
          show_reship_url(reship),
          :class => :reship_name,
          :title => reship.title,
          :target => :_blanck
      %>
      </div>
      <div class="ex">
        <p>转载自</p><a href="javascript:;"> <%= truncate("#{reship.source}", :length => 5) %> </a>
        <p class="time"><%= time_ago_in_words reship.created_at, false %>前</p>
        <p>分类：<%= truncate("#{reship.documet_type.name}", :length => 5) %></p>
        <%= link_to_remote "评论",
          :update => "reship_reply_#{reship.id}",
          :url => new_valleyers_show_transit_cargos_show_post_url(
          :valleyer_id => @valleyer.id,
          :reship_id => reship.id
        ),
          :method => :get,
          :html => {
          :class => "button"
        } if loggined_by_valleyer?
      %>
        <%= link_to_remote "编辑",
          :update => :reships_replace,
          :url => edit_valleyers_show_transit_cargos_show_reship_url(:id => reship.id, :current_page => @reships.current_page),
          :html => {
          :id => :edit_reship
          },
          :method => :get if loggined_by? @valleyer
      %>
        <%= link_to_remote "删除",
          :update => :reships_replace,
          :url => valleyers_show_transit_cargos_show_reship_url(reship, :page_number => @reships.current_page),
          :confirm => "确认删除?",
          :html => {
          :id => :delete_reship,
        },
          :loading => "Effect.Fade('reship_#{reship.id}')",
          :method => :delete if loggined_by? @valleyer
      %>
      </div>
      <div class="content">
        <div class="char"><p></p><%= truncate("#{strip_tags(reship.content)}", :length => 100) %></div>
        <p>
          <b>阅读(<%= reship.browse_records_count %>)</b>
          <b>评论(<%= reship.post_sessions.length %>)</b>
        </p>
      </div>
      <%= render :file => "valleyers/show/transit_cargos/show/posts/_index.html", :locals => {:reship => reship} %>
    </div>
  <% end %>
</div>
<%= page_turner(:reship, @reships) %>
